﻿using System;
using System.Configuration;

namespace OCDP.Shell.ConfigAccess
{
    public class ScreenManagmentConfig : ConfigurationSection, IScreenManagmentConfig
    {
        private const string UseScreenPersistence_ = "UseScreenPersistence";
        [ConfigurationProperty(UseScreenPersistence_, IsRequired = true)]
        public bool UseScreenPersistence
        {
            get { return (Boolean)this[UseScreenPersistence_]; }
            set { this[UseScreenPersistence_] = value; }
        }

        private const string ScreenLayoutFileName_ = "ScreenLayoutFileName";
        [ConfigurationProperty(ScreenLayoutFileName_, IsRequired = false)]
        public string ScreenLayoutFileName
        {
            get { return (string)this[ScreenLayoutFileName_]; }
            set { this[ScreenLayoutFileName_] = value; }
        }
    }
}
